package com.zxj.userscenter.back.controller;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.zxj.userscenter.common.util.ConstatFinalUtil;
import com.zxj.userscenter.users.pojo.AAdmins;
import com.zxj.userscenter.users.service.IUsersService;

/**
 * 不需要登录的操作
 * @author ASUS
 *
 */
@Controller
public class NoLoginController
{
    @Resource
    private IUsersService usersService;
    /**
     * 管理员列表（测试）
     */
    @RequestMapping("adminsList")
    public String adminsList(HttpServletRequest request)
    {
    	ConstatFinalUtil.LOGGER.info("---adminsList--------");
    	Map<String,Object> condMap=new HashMap<String,Object>();
    	List<AAdmins> adminsList=this.usersService.findCondListAdminsService(null, condMap);
    	request.setAttribute("adminsList", adminsList);
    	return "/back/adminsList";
    }
}
